package com.df.zkservicetest.config.service;

import com.df.core.service.DfUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by DFx on 2016/9/16.
 */

@RestController
@RequestMapping(value = "/testService", method = RequestMethod.POST)
public class TestServiceImpl {

    private String msg = "testMsg";

    @RequestMapping(value = "/getMsg", method = RequestMethod.POST)
    public String getMsg() {
        DfUtil.test();
        return msg+"_test";
    }


    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    public String hi() {
        DfUtil.test();
        return "this.hi";
    }

    @RequestMapping(path = "/getTra", method = RequestMethod.TRACE)
    String getTra(){
        return "thisTraTest";
    }
    @RequestMapping(path = "/getOpt", method = RequestMethod.OPTIONS)
    String getOpt(){
        return "thisOptTest";
    }

}
